package org.zezs.sync.mongo.config.es;

import com.alibaba.fastjson.annotation.JSONField;
import org.elasticsearch.client.transport.TransportClient;


public class EsConfig {

    /** es数据源名称  可以作为导出目的唯一标记 */
    private String name;
    /** 集群id */
    private String cluster;
    /** es的ip */
    private String ip;
    /** tcp端口 */
    private int port=9300;

    private boolean use = true;
    @JSONField(serialize = false)
    private transient TransportClient client;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCluster() {
        return cluster;
    }

    public void setCluster(String cluster) {
        this.cluster = cluster;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public TransportClient getClient() {
        return client;
    }

    public void setClient(TransportClient client) {
        this.client = client;
    }

    public boolean isUse() {
        return use;
    }

    public void setUse(boolean use) {
        this.use = use;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
